package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.service.wx.WXGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Can
 * @since 2022/06/28 17:14
 */
@RestController
@RequestMapping("wx/home")
public class WXHomeController {
    @Autowired
    WXGoodsService wxGoodsService;

    /**
     * 获取wx 商城首页数据
     *
     * @return com.cskaoyan.bean.vo.BaseRespVo
     * @author Can
     * @since 2022/06/28 17:59
     */
    @RequestMapping("index")
    public BaseRespVo homeInfo() {
        BaseRespVo baseRespVo = wxGoodsService.getHomeInfo();
        return baseRespVo;
    }

}
